package edu.sctu.practice.class02.hujie.cgs.practice02.test24;

/**
 * Created by user14 on 2015/11/10.
 */
public class Employee extends Role {
    @Override
    public void play() {
        System.out.println("*******职工信息*******");
        System.out.println("编号：" + getID());
        System.out.println("姓名：" + getName());
        System.out.println("性别:" + getGender());
        System.out.println("年龄：" + getAge());
        System.out.println("工资：" + getSalary());
    }

    protected int salary;
    protected static String ID;

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public int getSalary() {
        return salary;
    }

    public void setID(String id) {
        ID = id;
    }

    public String getID() {
        return ID;
    }

    public Employee(int age, String id, boolean gender) {
        setAge(age);
        setID(id);
        setGender(gender);
    }

    public Employee(int age, String name, int salary, String id, boolean gender) {
        this(age, id, gender);
        this.setName(name);
        setSalary(salary);
    }
}
